import request from '@/request/index.js'




export function insertAddress(data) {
	return request.post({
		url: `/api/user/insertAddress`,
		data

	});
}
export function editAddress(data) {
	return request.post({
		url: `/api/user/editAddress`,
		data

	});
}
export function deleteAddress(data) {
	return request.post({
		url: `/api/user/deleteAddress`,
		data
	});
}
export function setDefaultAddress(data) {
	return request.get({
		url: `/api/user/setDefaultAddress`,
		data
	});
}
export function defaultAddress() {
	return request.get({
		url: `/api/user/defaultAddress`,
		
	});
}
export function ourAddress() {
	return request.get({
		url: `/api/user/ourAddress`,
	});
}
export function getAddress(data) {
	return request.get({
		url: `/api/user/getAddressById`,
		data
	});
}